package com.qijian.maindata.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

@Data
@ToString
public class ProjectGroupVo {
    private String itemName;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bomId;
    private String url;
    private String nickName;
    private String phoneNumber;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    private int rowCount;
    private int deliver;
    private int wait;
    private int noStart;
    private int normal;
    private int delay;
    private int suspend;
    private int untreated;
    private BigDecimal salesAmount;

    private String salesIds;

    public int getUntreated() {
        return this.rowCount - this.normal - this.delay - this.suspend;
    }

    private List<ProjectGroupDetailVo> details;

    private List<ProjectStatusVo> deliverList;
    private List<ProjectStatusVo> completeList;
    private List<ProjectStatusVo> processList;
}
